//package com.raptor.trustworthy.server.contraller;
//
//import com.raptor.trustworthy.server.service.ZookeeperHandle;
//import java.util.Map;
//import javax.annotation.Resource;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.ResponseBody;
//
///**
// * @Author renhuan
// * @Date 2020-09-09 17:37
// **/
//@Controller
//@RequestMapping("/zk")
//public class ZookeeperContraller {
//
//  @Autowired
//  public ZookeeperHandle zookeeperHandle;
//
//  @PostMapping("/create")
//  @ResponseBody
//  public String createNode(@RequestBody Map parmsMap){
////  public String createNode(@RequestParam("path") String parmsMap, @RequestParam("node") String node){
//    return zookeeperHandle.createTestNode(parmsMap.get("path").toString(), parmsMap.get("node").toString());
////    return zookeeperHandle.createTestNode(parmsMap, node);
//  }
//
//  @PostMapping("/set")
//  @ResponseBody
//  public String setNode(@RequestBody Map parmsMap){
//    String path = String.valueOf(parmsMap.get("path"));
//    String node = String.valueOf(parmsMap.get("node"));
//    String data = String.valueOf(parmsMap.get("data"));
//    return zookeeperHandle.setTestNode(path, node, data);
//  }
//}
